<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title>广软课室申请后台管理系统</title>
    <meta charset="UTF-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <link rel="stylesheet" th:href="@{../x-admin/css/font.css}">
    <link rel="stylesheet" th:href="@{../x-admin/css/xadmin.css}">
    <!-- <link rel="stylesheet" href="./css/theme5.css"> -->
    <script th:src="@{../x-admin/lib/layui/layui.js}" charset="utf-8"></script>
    <script type="text/javascript" th:src="@{../x-admin/js/xadmin.js}"></script>
    <!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
    <!--[if lt IE 9]>
    <script th:src="@{https://cdn.staticfile.org/html5shiv/r29/html5.min.js}"></script>
    <script th:src="@{https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js}"></script>
    <![endif]-->
    <script>
        // 是否开启刷新记忆tab功能
        // var is_remember = false;
    </script>
</head>
<body>
<div class="layui-fluid">
    <div class="layui-card-body layui-table-body layui-table-main">
        <table class="layui-table layui-form">
            <thead>
            <tr>
                <th></th>
                <th>星期</th>
                <th>节次</th>
                <th>时间段</th>
                <th>状态</th>
            </tr>
            </thead>
            <tbody>
            <form>
                <tr th:each="room,roomStat :${roomInfos}">
                    <td><p th:text="${roomStat.index+1}"></p></td>
                    <td><p th:text="${room.week.week}"></p></td>
                    <td><p th:text="${room.time.desc}"></p></td>
                    <td><p th:text="${room.time.begin}"></p>-
                        <p th:text="${room.time.end}"></td>
                    <td class="td-manage">
                        <button class="layui-btn layui-btn-normal" th:if="${room.status==0}">申请</button>
                        <button class="layui-btn layui-btn-danger" th:if="${room.status==1}">已使用</button>
                    </td>
                </tr>
            </form>
            </tbody>
        </table>
    </div>
</div>
</body>
<script>
</script>
</html>